home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 18 / Silicon_Graphics_hot mix 18.iso / .bin / hminst < prev    next >
Text File  |  1998-02-28  |  857b  |  30 lines

  1. #!/bin/csh
  2.  
  3. if (-w /usr/tmp) then
  4.    setenv TMPFILEDIR "/usr/tmp"
  5. else if (-w /tmp) then
  6.    setenv TMPFILEDIR "/tmp"
  7. else if (-w $HOME) then
  8.    setenv TMPFILEDIR $HOME
  9. endif
  10.  
  11. if (-e $TMPFILEDIR/hm18_install.$USER) then
  12.         /bin/rm -rf $TMPFILEDIR/hm18_install.$USER
  13. endif
  14.  
  15. mkdir $TMPFILEDIR/hm18_install.$USER
  16. mkdir $TMPFILEDIR/hm18_install.$USER/$$
  17. cd $TMPFILEDIR/hm18_install.$USER/$$
  18. /bin/tar xf $argv
  19. if (-e $TMPFILEDIR/hm18_install.$USER/$$/install.inst) then
  20.     /usr/sbin/SoftwareManager -F $TMPFILEDIR/hm18_install.$USER/$$/install.inst
  21. else
  22.     /usr/sbin/SoftwareManager -f .
  23. endif
  24.  
  25. set remove=`$HOTMIXDIR/.bin/xconfirm -B "Yes" -b "No" -icon question -t "The inst images currently reside in $TMPFILEDIR/hm18_install.$USER/$$. Do you want to remove them?"`
  26. if ($remove == 'Yes') then
  27.     cd $TMPFILEDIR
  28.     /bin/rm -rf $TMPFILEDIR/hm18_install.$USER
  29. endif
  30.